	<script type="text/javascript">
               function checkInput()
        	   {
            	   	if (document.addStatic.title.value=="")
            		{
            			alert("Please enter Title box");
            			document.addStatic.title.focus();
            			return false;
            		}
            	        	
            		if (document.addStatic.detail.value=="")
            		{
            			alert("Please enter Detail box ");
            			document.addStatic.detail.focus();
            			return false;
            		}                    
                    
                    alert("Success!");
            		return true;
        	   }       	  		
        	
            </script>
            
<form name="addStatic" method="post" action="" enctype="multipart/form-data" onsubmit="return checkInput();">
	<table border="0" cellpadding="0" cellspacing="0" id="id-form">

		<tr>

			<th valign="top">Title:</th>

			<td><input type="text" name="title" class="inp-form-error" />
			</td>

			<td>

				<div class="error-left"></div>

				<div class="error-inner">This field is required.</div></td>

		</tr>


		<tr>

			<th valign="top">Detail:</th>

			<td><textarea rows="" id="ckeditor" name="detail" cols="" class="form-textarea"></textarea>
			</td>

			<td></td>

		</tr>



		<th>&nbsp;</th>

		<td valign="top"><input name="submit" type="submit" value=""
			class="form-submit" /> <input name="reset" type="reset" value=""
			class="form-reset" /></td>

	</table>
</form>
